Documentation > CMS Template API Library > Util > Email(String,String,List[String],String,ContentType)
Used to send an email from the cms.
public System.Boolean Email(String,String,List[String],String,ContentType)
Returns
True if the email was successfully sent.
Parameters
Name | Description | Type |
---|---|---|
subject | The subject of the email. | System.String |
message | The message body of the email. | System.String |
recepients | A list of recepients | List<String> |
from | The From field of the email. The default value is null. When null the from address will be cms@[instance name].com | System.String |
contentType | Type of the content. Defaults to text/plain | CrownPeak.CMSAPI.ContentType |